package com.douxg.fastCoding.web.function;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Description 代码生成其它功能辅助类
 * @Auther douxg
 * @Date 2020/7/24 15:35
 */
@Component
public class CodeAssistFunction {
    public static final String dateFmt = "yyyy-MM-dd HH:mm";

    public String now() {
        LocalDateTime now = LocalDateTime.now();
        return now.format(DateTimeFormatter.ofPattern(dateFmt));
    }
}
